package com.JobFind.DTO;

import com.JobFind.model.TbLog;
import com.JobFind.model.TbUser;


public class LogDTO implements java.io.Serializable{

	private static final long serialVersionUID = 1L;
	private Integer logId;
    private Integer userId;
    private String logIp;
    private String logTime;
    private Integer userType;
	public Integer getLogId() {
		return logId;
	}
	public String getLogIp() {
		return logIp;
	}
	public void setLogIp(String logIp) {
		this.logIp = logIp;
	}
	public String getLogTime() {
		return logTime;
	}
	public void setLogTime(String logTime) {
		this.logTime = logTime;
	}
	public Integer getUserId() {
		return userId;
	}
	public void setUserId(Integer userId) {
		this.userId = userId;
	}
	public Integer getUserType() {
		return userType;
	}
	public void setUserType(Integer userType) {
		this.userType = userType;
	}
	public void setLogId(Integer logId) {
		this.logId = logId;
	}
    
	public TbLog toDAO(){
		TbLog logBean = new TbLog();
		logBean.setUserId(this.getUserId());
		logBean.setLogId(this.getLogId());
		logBean.setLogIp(this.getLogIp());
		logBean.setLogTime(this.getLogTime());
		logBean.setUserType(this.getUserType());
		return logBean;
	}
}
